{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { resetComponent } from '../../style';\nvar genFilterStyle = function genFilterStyle(token) {\n  var _$concat, _$concat2, _Object$assign, _$concat$concat$conca;\n  var componentCls = token.componentCls,\n    antCls = token.antCls,\n    iconCls = token.iconCls,\n    tableFilterDropdownWidth = token.tableFilterDropdownWidth,\n    tableFilterDropdownSearchWidth = token.tableFilterDropdownSearchWidth,\n    paddingXXS = token.paddingXXS,\n    paddingXS = token.paddingXS,\n    colorText = token.colorText,\n    lineWidth = token.lineWidth,\n    lineType = token.lineType,\n    tableBorderColor = token.tableBorderColor,\n    tableHeaderIconColor = token.tableHeaderIconColor,\n    fontSizeSM = token.fontSizeSM,\n    tablePaddingHorizontal = token.tablePaddingHorizontal,\n    borderRadius = token.borderRadius,\n    motionDurationSlow = token.motionDurationSlow,\n    colorTextDescription = token.colorTextDescription,\n    colorPrimary = token.colorPrimary,\n    tableHeaderFilterActiveBg = token.tableHeaderFilterActiveBg,\n    colorTextDisabled = token.colorTextDisabled,\n    tableFilterDropdownBg = token.tableFilterDropdownBg,\n    tableFilterDropdownHeight = token.tableFilterDropdownHeight,\n    controlItemBgHover = token.controlItemBgHover,\n    controlItemBgActive = token.controlItemBgActive,\n    boxShadowSecondary = token.boxShadowSecondary;\n  var dropdownPrefixCls = \"\".concat(antCls, \"-dropdown\");\n  var tableFilterDropdownPrefixCls = \"\".concat(componentCls, \"-filter-dropdown\");\n  var treePrefixCls = \"\".concat(antCls, \"-tree\");\n  var tableBorder = \"\".concat(lineWidth, \"px \").concat(lineType, \" \").concat(tableBorderColor);\n  return [_defineProperty({}, \"\".concat(componentCls, \"-wrapper\"), (_$concat = {}, _defineProperty(_$concat, \"\".concat(componentCls, \"-filter-column\"), {\n    display: 'flex',\n    justifyContent: 'space-between'\n  }), _defineProperty(_$concat, \"\".concat(componentCls, \"-filter-trigger\"), {\n    position: 'relative',\n    display: 'flex',\n    alignItems: 'center',\n    marginBlock: -paddingXXS,\n    marginInline: \"\".concat(paddingXXS, \"px \").concat(-tablePaddingHorizontal / 2, \"px\"),\n    padding: \"0 \".concat(paddingXXS, \"px\"),\n    color: tableHeaderIconColor,\n    fontSize: fontSizeSM,\n    borderRadius: borderRadius,\n    cursor: 'pointer',\n    transition: \"all \".concat(motionDurationSlow),\n    '&:hover': {\n      color: colorTextDescription,\n      background: tableHeaderFilterActiveBg\n    },\n    '&.active': {\n      color: colorPrimary\n    }\n  }), _$concat)), _defineProperty({}, \"\".concat(antCls, \"-dropdown\"), _defineProperty({}, tableFilterDropdownPrefixCls, Object.assign(Object.assign({}, resetComponent(token)), (_Object$assign = {\n    minWidth: tableFilterDropdownWidth,\n    backgroundColor: tableFilterDropdownBg,\n    borderRadius: borderRadius,\n    boxShadow: boxShadowSecondary\n  }, _defineProperty(_Object$assign, \"\".concat(dropdownPrefixCls, \"-menu\"), {\n    // https://github.com/ant-design/ant-design/issues/4916\n    // https://github.com/ant-design/ant-design/issues/19542\n    maxHeight: tableFilterDropdownHeight,\n    overflowX: 'hidden',\n    border: 0,\n    boxShadow: 'none',\n    '&:empty::after': {\n      display: 'block',\n      padding: \"\".concat(paddingXS, \"px 0\"),\n      color: colorTextDisabled,\n      fontSize: fontSizeSM,\n      textAlign: 'center',\n      content: '\"Not Found\"'\n    }\n  }), _defineProperty(_Object$assign, \"\".concat(tableFilterDropdownPrefixCls, \"-tree\"), (_$concat2 = {\n    paddingBlock: \"\".concat(paddingXS, \"px 0\"),\n    paddingInline: paddingXS\n  }, _defineProperty(_$concat2, treePrefixCls, {\n    padding: 0\n  }), _defineProperty(_$concat2, \"\".concat(treePrefixCls, \"-treenode \").concat(treePrefixCls, \"-node-content-wrapper:hover\"), {\n    backgroundColor: controlItemBgHover\n  }), _defineProperty(_$concat2, \"\".concat(treePrefixCls, \"-treenode-checkbox-checked \").concat(treePrefixCls, \"-node-content-wrapper\"), {\n    '&, &:hover': {\n      backgroundColor: controlItemBgActive\n    }\n  }), _$concat2)), _defineProperty(_Object$assign, \"\".concat(tableFilterDropdownPrefixCls, \"-search\"), {\n    padding: paddingXS,\n    borderBottom: tableBorder,\n    '&-input': _defineProperty({\n      input: {\n        minWidth: tableFilterDropdownSearchWidth\n      }\n    }, iconCls, {\n      color: colorTextDisabled\n    })\n  }), _defineProperty(_Object$assign, \"\".concat(tableFilterDropdownPrefixCls, \"-checkall\"), {\n    width: '100%',\n    marginBottom: paddingXXS,\n    marginInlineStart: paddingXXS\n  }), _defineProperty(_Object$assign, \"\".concat(tableFilterDropdownPrefixCls, \"-btns\"), {\n    display: 'flex',\n    justifyContent: 'space-between',\n    padding: \"\".concat(paddingXS - lineWidth, \"px \").concat(paddingXS, \"px\"),\n    overflow: 'hidden',\n    backgroundColor: 'inherit',\n    borderTop: tableBorder\n  }), _Object$assign)))), // Dropdown Menu & SubMenu\n  _defineProperty({}, \"\".concat(antCls, \"-dropdown \").concat(tableFilterDropdownPrefixCls, \", \").concat(tableFilterDropdownPrefixCls, \"-submenu\"), (_$concat$concat$conca = {}, _defineProperty(_$concat$concat$conca, \"\".concat(antCls, \"-checkbox-wrapper + span\"), {\n    paddingInlineStart: paddingXS,\n    color: colorText\n  }), _defineProperty(_$concat$concat$conca, \"> ul\", {\n    maxHeight: 'calc(100vh - 130px)',\n    overflowX: 'hidden',\n    overflowY: 'auto'\n  }), _$concat$concat$conca))];\n};\nexport default genFilterStyle;","map":{"version":3,"names":["resetComponent","genFilterStyle","token","componentCls","antCls","iconCls","tableFilterDropdownWidth","tableFilterDropdownSearchWidth","paddingXXS","paddingXS","colorText","lineWidth","lineType","tableBorderColor","tableHeaderIconColor","fontSizeSM","tablePaddingHorizontal","borderRadius","motionDurationSlow","colorTextDescription","colorPrimary","tableHeaderFilterActiveBg","colorTextDisabled","tableFilterDropdownBg","tableFilterDropdownHeight","controlItemBgHover","controlItemBgActive","boxShadowSecondary","dropdownPrefixCls","tableFilterDropdownPrefixCls","treePrefixCls","tableBorder","display","justifyContent","position","alignItems","marginBlock","marginInline","padding","color","fontSize","cursor","transition","background","Object","assign","minWidth","backgroundColor","boxShadow","maxHeight","overflowX","border","textAlign","content","paddingBlock","paddingInline","borderBottom","input","width","marginBottom","marginInlineStart","overflow","borderTop","paddingInlineStart","overflowY"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/table/style/filter.js"],"sourcesContent":["import { resetComponent } from '../../style';\nconst genFilterStyle = token => {\n  const {\n    componentCls,\n    antCls,\n    iconCls,\n    tableFilterDropdownWidth,\n    tableFilterDropdownSearchWidth,\n    paddingXXS,\n    paddingXS,\n    colorText,\n    lineWidth,\n    lineType,\n    tableBorderColor,\n    tableHeaderIconColor,\n    fontSizeSM,\n    tablePaddingHorizontal,\n    borderRadius,\n    motionDurationSlow,\n    colorTextDescription,\n    colorPrimary,\n    tableHeaderFilterActiveBg,\n    colorTextDisabled,\n    tableFilterDropdownBg,\n    tableFilterDropdownHeight,\n    controlItemBgHover,\n    controlItemBgActive,\n    boxShadowSecondary\n  } = token;\n  const dropdownPrefixCls = `${antCls}-dropdown`;\n  const tableFilterDropdownPrefixCls = `${componentCls}-filter-dropdown`;\n  const treePrefixCls = `${antCls}-tree`;\n  const tableBorder = `${lineWidth}px ${lineType} ${tableBorderColor}`;\n  return [{\n    [`${componentCls}-wrapper`]: {\n      [`${componentCls}-filter-column`]: {\n        display: 'flex',\n        justifyContent: 'space-between'\n      },\n      [`${componentCls}-filter-trigger`]: {\n        position: 'relative',\n        display: 'flex',\n        alignItems: 'center',\n        marginBlock: -paddingXXS,\n        marginInline: `${paddingXXS}px ${-tablePaddingHorizontal / 2}px`,\n        padding: `0 ${paddingXXS}px`,\n        color: tableHeaderIconColor,\n        fontSize: fontSizeSM,\n        borderRadius,\n        cursor: 'pointer',\n        transition: `all ${motionDurationSlow}`,\n        '&:hover': {\n          color: colorTextDescription,\n          background: tableHeaderFilterActiveBg\n        },\n        '&.active': {\n          color: colorPrimary\n        }\n      }\n    }\n  }, {\n    // Dropdown\n    [`${antCls}-dropdown`]: {\n      [tableFilterDropdownPrefixCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n        minWidth: tableFilterDropdownWidth,\n        backgroundColor: tableFilterDropdownBg,\n        borderRadius,\n        boxShadow: boxShadowSecondary,\n        // Reset menu\n        [`${dropdownPrefixCls}-menu`]: {\n          // https://github.com/ant-design/ant-design/issues/4916\n          // https://github.com/ant-design/ant-design/issues/19542\n          maxHeight: tableFilterDropdownHeight,\n          overflowX: 'hidden',\n          border: 0,\n          boxShadow: 'none',\n          '&:empty::after': {\n            display: 'block',\n            padding: `${paddingXS}px 0`,\n            color: colorTextDisabled,\n            fontSize: fontSizeSM,\n            textAlign: 'center',\n            content: '\"Not Found\"'\n          }\n        },\n        [`${tableFilterDropdownPrefixCls}-tree`]: {\n          paddingBlock: `${paddingXS}px 0`,\n          paddingInline: paddingXS,\n          [treePrefixCls]: {\n            padding: 0\n          },\n          [`${treePrefixCls}-treenode ${treePrefixCls}-node-content-wrapper:hover`]: {\n            backgroundColor: controlItemBgHover\n          },\n          [`${treePrefixCls}-treenode-checkbox-checked ${treePrefixCls}-node-content-wrapper`]: {\n            '&, &:hover': {\n              backgroundColor: controlItemBgActive\n            }\n          }\n        },\n        [`${tableFilterDropdownPrefixCls}-search`]: {\n          padding: paddingXS,\n          borderBottom: tableBorder,\n          '&-input': {\n            input: {\n              minWidth: tableFilterDropdownSearchWidth\n            },\n            [iconCls]: {\n              color: colorTextDisabled\n            }\n          }\n        },\n        [`${tableFilterDropdownPrefixCls}-checkall`]: {\n          width: '100%',\n          marginBottom: paddingXXS,\n          marginInlineStart: paddingXXS\n        },\n        // Operation\n        [`${tableFilterDropdownPrefixCls}-btns`]: {\n          display: 'flex',\n          justifyContent: 'space-between',\n          padding: `${paddingXS - lineWidth}px ${paddingXS}px`,\n          overflow: 'hidden',\n          backgroundColor: 'inherit',\n          borderTop: tableBorder\n        }\n      })\n    }\n  },\n  // Dropdown Menu & SubMenu\n  {\n    // submenu of table filter dropdown\n    [`${antCls}-dropdown ${tableFilterDropdownPrefixCls}, ${tableFilterDropdownPrefixCls}-submenu`]: {\n      // Checkbox\n      [`${antCls}-checkbox-wrapper + span`]: {\n        paddingInlineStart: paddingXS,\n        color: colorText\n      },\n      [`> ul`]: {\n        maxHeight: 'calc(100vh - 130px)',\n        overflowX: 'hidden',\n        overflowY: 'auto'\n      }\n    }\n  }];\n};\nexport default genFilterStyle;"],"mappings":";AAAA,SAASA,cAAc,QAAQ,aAAa;AAC5C,IAAMC,cAAc,GAAG,SAAjBA,cAAc,CAAGC,KAAK,EAAI;EAAA;EAC9B,IACEC,YAAY,GAyBVD,KAAK,CAzBPC,YAAY;IACZC,MAAM,GAwBJF,KAAK,CAxBPE,MAAM;IACNC,OAAO,GAuBLH,KAAK,CAvBPG,OAAO;IACPC,wBAAwB,GAsBtBJ,KAAK,CAtBPI,wBAAwB;IACxBC,8BAA8B,GAqB5BL,KAAK,CArBPK,8BAA8B;IAC9BC,UAAU,GAoBRN,KAAK,CApBPM,UAAU;IACVC,SAAS,GAmBPP,KAAK,CAnBPO,SAAS;IACTC,SAAS,GAkBPR,KAAK,CAlBPQ,SAAS;IACTC,SAAS,GAiBPT,KAAK,CAjBPS,SAAS;IACTC,QAAQ,GAgBNV,KAAK,CAhBPU,QAAQ;IACRC,gBAAgB,GAedX,KAAK,CAfPW,gBAAgB;IAChBC,oBAAoB,GAclBZ,KAAK,CAdPY,oBAAoB;IACpBC,UAAU,GAaRb,KAAK,CAbPa,UAAU;IACVC,sBAAsB,GAYpBd,KAAK,CAZPc,sBAAsB;IACtBC,YAAY,GAWVf,KAAK,CAXPe,YAAY;IACZC,kBAAkB,GAUhBhB,KAAK,CAVPgB,kBAAkB;IAClBC,oBAAoB,GASlBjB,KAAK,CATPiB,oBAAoB;IACpBC,YAAY,GAQVlB,KAAK,CARPkB,YAAY;IACZC,yBAAyB,GAOvBnB,KAAK,CAPPmB,yBAAyB;IAC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